<?php /* Smarty version 2.6.19, created on 2012-10-07 22:08:19
         compiled from D:/xampp/htdocs/nghiepquang/templates/FilterMenuSearch/FilterMenuSearch.tpl */ ?>
<?php if ($this->_tpl_vars['filter_groups'] || ( $this->_tpl_vars['filter_price'] && $this->_tpl_vars['filter_price']['filters'] )): ?>
<div id="filter_menu">
    <div class="filter_menu_header_left">
        <div class="filter_menu_header_right">
            <div class="filter_menu_header">
                <a href="<?php echo $this->_tpl_vars['url_filter']; ?>
">Lọc sản phẩm</a>
            </div>
        </div>
    </div>
    <div style="border-top:4px solid #CD0000">
        <div class="filter_menu_content">
            <?php if ($this->_tpl_vars['filter_price'] && $this->_tpl_vars['filter_price']['filters']): ?>
            	<div class="group_filter"><?php echo $this->_tpl_vars['filter_price']['name']; ?>
</div>
                <div class="filter_link">
                <?php $_from = $this->_tpl_vars['filter_price']['filters']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['filter']):
?>
                	<div class="filter_item">
                    	&raquo;
                        <a href="<?php echo $this->_tpl_vars['filter']['link']; ?>
"><?php echo $this->_tpl_vars['filter']['name']; ?>
</a> <span class="count">(<?php echo $this->_tpl_vars['filter']['count']; ?>
)</span>
                            
                       <?php if ($this->_tpl_vars['filter']['remove']): ?>
                        <span class="remove"> [<a href='<?php echo $this->_tpl_vars['filter']['link']; ?>
' title='Xóa điều kiện lọc này'>xóa</a>]</span>
                       <?php endif; ?>
                    </div>
                <?php endforeach; endif; unset($_from); ?> 
                </div>
             <?php endif; ?>
             
             <?php if ($this->_tpl_vars['filter_price'] && $this->_tpl_vars['filter_groups']): ?><div class="filter_sep"></div><?php endif; ?>
             
             <?php if ($this->_tpl_vars['filter_groups']): ?>  
                <?php $_from = $this->_tpl_vars['filter_groups']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['filter_group'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['filter_group']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['group']):
        $this->_foreach['filter_group']['iteration']++;
?>
                	<?php if (! ($this->_foreach['filter_group']['iteration'] <= 1)): ?>
                    <div class="filter_sep"></div>
                    <?php endif; ?>
                    <?php if ($this->_tpl_vars['group']['filters']): ?>
                    <div class="group_filter"><?php echo $this->_tpl_vars['group']['name']; ?>
</div>
                    <div class="filter_link">
                         <?php $_from = $this->_tpl_vars['group']['filters']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['filter']):
?>
                         <div class="filter_item">
                         	&raquo;
                            <a href="<?php echo $this->_tpl_vars['filter']['link']; ?>
"><?php echo $this->_tpl_vars['filter']['name']; ?>
</a> <span class="count">(<?php echo $this->_tpl_vars['filter']['count']; ?>
)</span>
                            
                           <?php if ($this->_tpl_vars['filter']['remove']): ?>
                            <span class="remove"> [<a href='<?php echo $this->_tpl_vars['filter']['link']; ?>
' title='Xóa điều kiện lọc này'>xóa</a>]</span>
                           <?php endif; ?>
                        </div>    
                        <?php endforeach; endif; unset($_from); ?>
                    </div>        
                    <?php endif; ?>
                <?php endforeach; endif; unset($_from); ?>
            <?php endif; ?>     
        </div>
    </div>
    <div class="filter_menu_bottom"></div>
</div>
<?php endif; ?>